package com.example.wac.event.listener;

import com.example.wac.event.MessageEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author wuancheng
 * @description 事件监听者
 * @date 2021-09-08 16:28:00
 */

@Component
public class MessageListener implements ApplicationListener<MessageEvent> {

    @Override
    public void onApplicationEvent(MessageEvent messageEvent) {
//        System.out.println("发送消息:"+messageEvent.getMessage()+"--------------------------------一号监听");
    }

}
